package com.zrrd.gmall.list.fegin;

import com.zrrd.gmall.common.result.Result;
import com.zrrd.gmall.model.list.SearchParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-list")
public interface ListFefinClient {

    //更新热度
    @GetMapping("/api/list/inner/incrHotScore/{skuId}")
    public Result incrHotScore(@PathVariable("skuId") Long skuId);

    //搜索商品
    @PostMapping("/api/list")
    public Result list(@RequestBody SearchParam searchParam);
}
